<template lang="pug">
div(style="padding-bottom: 5rem")
  app-header(fixed,back,title="测试",v-if="!$helper.isWechat")
  mt-button(@click="sayHello") 获得内容
</template>

<script>
import { Toast, Button } from 'mint-ui'
import Header from 'components/Header'
export default {
  components: {
    'mt-button': Button,
    'app-header': Header
  },
  methods: {
    async sayHello () {
      Toast('Hello')
      // const result = await this.$rpc.invoke('product_detail', [1]).complete()
      // const result = await this.$rpc.invoke('product_lists', []).complete()
      const result = await this.$rpc.invoke('activity_lists', []).complete()
      console.log(result)
    }
  }
}
</script>
<style lang="stylus" scoped>
</style>
